package com.cxc.template;

import com.cxc.entity.Fruite;

import java.util.List;

public class CartShopping extends ShoppingCart {

    public CartShopping(List<Fruite> products) {
        super(products);
    }

    @Override
    protected void pay(int money) {
        System.out.println("会员卡结算，立减10，金额："+ (money - 10)+",增加积分："+10*money);
    }

}
